
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--声明jstl标签--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>user页面</h1>
<%--EL表达式--%>
${requestScope.name}
${password}
${aihao}
${sex}

${sessionScope.name}
 <%--c:if  test表达式为true 显示 否则不显示--%>
<c:if test="${1<10}">
     c:if生效
</c:if>
<c:if test="${1>10}">
    <span>不显示</span>
</c:if>

<table border="1" cellspacing="0">
    <tr>
        <th>序号</th>
        <th>账号</th>
        <th>密码</th>
    </tr>

    <%--items：遍历的集合  var：遍历的每个元素  --%>
    <c:forEach items="${list}" var="u" varStatus="idx">
        <tr>
            <td>${idx.count}</td>
            <td>${u.username}</td>
            <td>${u.password}</td>
        </tr>
    </c:forEach>
</table>

</body>
</html>
